package com.cockybook.poemspider.beans;

import com.cockybook.utils.StringUtil;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

@Entity
public class Poem {

    @Id
    private int id;

    private String title;

    private String poetName;

    private String dynasty;

    private String dynastyReal;

    private String poetId;

    private int isShiju=0;

    private int fromPoemId;
    private String fromPoemName;


    @Column(columnDefinition = "text")
    private String labels;  //"splite by ,"

    @Column(columnDefinition = "LongText")
    private String content;

    @Column(columnDefinition = "LongText")
    private String introduction;

    private String memo;

    @Override
    public String toString() {
        return "Poem{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", poetName='" + poetName + '\'' +
                ", dynasty='" + dynasty + '\'' +
                ", dynastyReal='" + dynastyReal + '\'' +
                ", poetId='" + poetId + '\'' +
                ", content='" + content + '\'' +
                ", introduction='" + introduction + '\'' +
                ", memo='" + memo + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPoetName() {
        return poetName;
    }

    public void setPoetName(String poetName) {
        this.poetName = poetName;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    public String getDynastyReal() {
        return dynastyReal;
    }

    public void setDynastyReal(String dynastyReal) {
        this.dynastyReal = dynastyReal;
    }

    public String getPoetId() {
        return poetId;
    }

    public void setPoetId(String poetId) {
        this.poetId = poetId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public int getIsShiju() {
        return isShiju;
    }

    public void setIsShiju(int isShiju) {
        this.isShiju = isShiju;
    }

    public String getLabels() {
        return labels;
    }

    public void setLabels(String labels) {
        this.labels = labels;
    }

    public int getFromPoemId() {
        return fromPoemId;
    }

    public void setFromPoemId(int fromPoemId) {
        this.fromPoemId = fromPoemId;
    }

    public String getFromPoemName() {
        return fromPoemName;
    }

    public void setFromPoemName(String fromPoemName) {
        this.fromPoemName = fromPoemName;
    }
}
